<?php

header("Location: generatepayments.php");

$payment_id = $_POST['payment_id'];
$method = $_POST['method'];
$full_amount = $_POST['amount'];
$date = date('Y-m-d');

//echo $date;
// paying
require '../dbconnect.php';

$query = 'UPDATE payment SET datepaid="'.$date.'", method="'.$method.'", amount_paid="'.$full_amount.'" WHERE payment_id="'.$payment_id.'"';
mysql_query($query);

//echo "done!";
//echo $query;

